package kr.ac.ml.action;

import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import org.json.simple.JSONValue;
import org.json.simple.parser.JSONParser;

import ac.kr.ml.dao.ListDao;
import ac.kr.ml.vo.ContentVo;
import kr.ac.ml.mvc.Action;

public class MakeFriendTable extends Action {

	@Override
	public void execute(HttpServletRequest request, HttpServletResponse response)
			throws IOException, ServletException {
		// TODO Auto-generated method stub
		System.out.println("MakeFriendTable");
		
		String emp_ID = request.getParameter("emp_ID");
		int empID = Integer.parseInt(emp_ID);		
		String fmp_ID = request.getParameter("fmp_ID");
		int fmpID=Integer.parseInt(fmp_ID);
		ContentVo vo = new ContentVo();
		vo.setempID(empID);
		vo.setfmpID(fmpID);
		
		ListDao dao = new ListDao();
		dao.insertFriend(vo);
				
		
	}
	

}
